-author('abdoo.mahran@gmail.com').

-define(FIRSTPASS_DEL, ",").
-define(SECONDPASS_DEL, "\t ").
-define(DECIMAL, 15).
-define(COMMENT_DEL, "/").

-define(HEX(C), if
                    C == "A" ->
                        "41";
                    C == "B" ->
                        "42";
                    C == "C" ->
                        "43";
                    C == "D" ->
                        "44";
                    C == "E" ->
                        "45";
                    C == "F" ->
                        "46";
                    C == "G" ->
                        "47";
                    C == "H" ->
                        "48";
                    C == "I" ->
                        "49";
                    C == "J" ->
                        "4A";
                    C == "K" ->
                        "4B";
                    C == "L" ->
                        "4C";
                    C == "M" ->
                        "4D";
                    C == "N" ->
                        "4E";
                    C == "O" ->
                        "4F";
                    C == "P" ->
                        "50";
                    C == "Q" ->
                        "51";
                    C == "R" ->
                        "52";
                    C == "S" ->
                        "53";
                    C == "T" ->
                        "54";
                    C == "U" ->
                        "55";
                    C == "V" ->
                        "56";
                    C == "W" ->
                        "57";
                    C == "X" ->
                        "58";
                    C == "Y" ->
                        "59";
                    C == "Z" ->
                        "5A";
                    C == "0" ->
                        "30";
                    C == "1" ->
                        "31";
                    C == "2" ->
                        "32";
                    C == "3" ->
                        "33";
                    C == "4" ->
                        "34";
                    C == "5" ->
                        "35";
                    C == "6" ->
                        "36";
                    C == "7" ->
                        "37";
                    C == "8" ->
                        "38";
                    C == "9" ->
                        "39";
                    C == " " ->
                        "20";
                    C == "(" ->
                        "28";
                    C == ")" ->
                        "29";
                    C == "*" ->
                        "2A";
                    C == "+" ->
                        "2B";
                    C == "," ->
                        "2C";
                    C == "-" ->
                        "2D";
                    C == "." ->
                        "2E";
                    C == "/" ->
                        "2F";
                    C == "=" ->
                        "3D";
                    C == "\n" ->
                        "0D"
                end).
